package com.xinghou.platform.file.service.impl;

import java.util.Map;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.xinghou.platform.file.service.UpphotoService;
import com.xinghou.platform.service.main.PhotoDataProcessService;

/**
 * 照片信息服务
 * @author xuzhen
 *
 */
@Service("upphotoService")
public class UpphotoServiceImpl extends BaseDAOProtery<PhotoDataProcessService> implements UpphotoService {
	private String daoUrl = httpServicesDaourl + "dao/main/photoDataProcess";
	/**
	 * 更新用户头像信息
	 * @return
	 * @throws DataAccessException
	 */
	public int updateUserphotoInfoOther(String userid,Map<String,String> data) {
		int simphotoid = getHessianDAO(daoUrl).updatePhotoHeadData(userid, data);
		
		return simphotoid;
	}
	@Override
	public int updatePhotoShareData(Map<String, String> data) {
		// TODO Auto-generated method stub
		return getHessianDAO(daoUrl).updatePhotoShareData(data);
	}
	@Override
	public int updatePhotoMsgData(Map<String, String> data) {
		// TODO Auto-generated method stub
		return getHessianDAO(daoUrl).updatePhotoMsgData(data);
	}
	@Override
	public int addVoiceMsgData(Map<String, String> data) {
		//daoUrl = httpServicesDaourl + "dao/main/photoDataProcess";
		return getHessianDAO(daoUrl).addVoiceMsgData(data);
	}
	@Override
	public int addShopPhoto(Map<String, String> data) {
		// TODO Auto-generated method stub
		return getHessianDAO(daoUrl).addShopPhotoData(data);
	}
}
